import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 图标并进行全局注册
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import store from './store'
import router from './router'

const app = createApp(App)
// 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 使用xuex
app.use(store)
// 使用路由
app.use(router)
// 使用组件
app.use(ElementPlus)
app.mount('#app')

